import request from '/@/request/https'
import { AxiosPromise } from 'axios'

export interface submitParam {
  credential: string
}

// 详情
export function getReportData(data:any): AxiosPromise {
  return request({ 
    url: "/policyReportQuery/getReportDetails",
    method: 'post',
    data
  })
}
// 从业人员和机构列表精读
export function getDetailRead(data:any): AxiosPromise {
  return request({
    url: "/policyReportQuery/getPeruse",
    method: 'post',
    data
  })
}
// 扫码精读
export function letterControllerjstUrl(data: any): AxiosPromise {
  return request({
    url: "/letterController/jstUrl",
    method: 'post',
    data
  })
}
// 扫码精读
export function getDetailReadisCodeSm(data: any): AxiosPromise {
  return request({
    url: "/policyReportQuery/getPeruseByScanCode",
    method: 'post',
    data
  })
}
// 从报告已生成页面进入报告详情页数据
export function getDetailReadIsCode(data: any): AxiosPromise {
  return request({
    url: "/policyReportQuery/getReportDetailsByScanCode",
    method: 'post',
    data
  })
}

// jst联合登录
export function jstJointLogin(data: any): AxiosPromise {
  return request({
    url: "/jstJointLogin",
    method: 'post',
    data
  })
}

export function Jlogin(data): AxiosPromise {
  return request({
    url: "/jointLogin",
    method: 'post',
    data
  })
}

// 报告保存
export function reportSave(data): AxiosPromise {
  return request({
    url: "/policyReportQuery/reportSaveFlag",
    method: 'post',
    data
  })
}

// 三级责任
export function getResponsibilityInterpretation(data): AxiosPromise {
  return request({
    url: "/policyReportQuery/getResponsibilityInterpretation",
    method: 'post',
    data
  })
}

// 扫码三级
export function getResponsibilityInterpretationByScanCode(data): AxiosPromise {
  return request({
    url: "/policyReportQuery/getResponsibilityInterpretationByScanCode",
    method: 'post',
    data
  })
}